package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.finance.PaymentBill;

public class PaymentBillEvent extends DomainEvent<PaymentBill> {
  public static final String PAYMENT_BILL_LOCK = "paymentBillLock";
  public static final String PAYMENT_BILL_UNLOCK = "paymentBillUnlock";
  public static final String PAYMENT_BILL_CREATED = "paymentBillCreated";
  public static final String PAYMENT_BILL_DESTORY = "paymentBillDestory";

    public static DomainEvent paymentBillLock(Object[] values) {
      PaymentBillEvent paymentBillEvent = new PaymentBillEvent();
      paymentBillEvent.eventName = PAYMENT_BILL_LOCK;
      paymentBillEvent.values=values;
      return paymentBillEvent;
    }

    public static DomainEvent paymentBillCreated(Object[] values) {
      PaymentBillEvent paymentBillEvent = new PaymentBillEvent();
      paymentBillEvent.eventName = PAYMENT_BILL_CREATED;
      paymentBillEvent.values=values;
      return paymentBillEvent;
    }

    public static DomainEvent paymentBillDestory(Object[] values) {
      PaymentBillEvent paymentBillEvent = new PaymentBillEvent();
      paymentBillEvent.eventName = PAYMENT_BILL_DESTORY;
      paymentBillEvent.values=values;
      return paymentBillEvent;
    }

    public static DomainEvent paymentBillUnlock(Object[] values) {
      PaymentBillEvent paymentBillEvent = new PaymentBillEvent();
      paymentBillEvent.eventName = PAYMENT_BILL_UNLOCK;
      paymentBillEvent.values=values;
      return paymentBillEvent;
    }
}
